//
//  ATVBrowserController.m
//  FlashController
//
//  Created by Martin Schiøth Dyrby on 11/15/11.
//  Copyright 2011 Molamil. All rights reserved.
//

#import "ATVBrowserController.h"
#import "ATVUrl.h"

@implementation ATVBrowserController

@synthesize browserView;
@synthesize textField;

- (id)init
{
    self = [super init];
    if (self) {
        // Initialization code here.
        [browserView setResourceLoadDelegate:self];
    }
    
    return self;
}

/* LISTEN TO BUTTON AND TEXT FIELD */

-(IBAction) load: (id) sender
{
    ATVUrl *url = [[ATVUrl alloc] init];
    url.url = [textField stringValue];
    [browserView updateBrowserView:url];
    [url release];
}
-(IBAction) change: (id) sender
{
}


@end
